/**
 * Created by shi.pengyan on 2016-12-15.
 */

import actions from './appointmentsAction';
import mutations from './appointmentsMutation';

const state = {
  currentPage: 1,
  currentEditAppointMent: null, //当前编辑的数据对象
  totalCount: 0,
  pageSize: 10,
  appointments: []
};

const getters = {
  getPeAppointments: state => state.appointments,
  getPeAppointmentsCurrentPage: state => state.currentPage,
  getPeAppointmentsTotalCount: state => state.totalCount,
  getPeAppointmentsPageSize: state => state.pageSize
};

export default {
  state,
  getters,
  actions,
  mutations
};
